package com.msmall.community.bbs.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.base.exception.DataNotFoundException;
import com.msmall.community.bbs.model.Favorite;

public interface FavoriteDao extends BaseDao<Favorite, Long>{

	public Favorite getFavorite(Long userid, Long topicId) throws DataNotFoundException;
	
	/**
	 * 获得用户所有收藏的帖子
	 */
	public List<Favorite> getAllByUserid(Long userid) throws Exception;
}
